// 用户相关的接口
import request from "../utils/request";
// 景区列表
export const ScenicIndex = () => {
  return request({
    url: "/app/scenic/index",
    method: "post",
  });
};
// 攻略列表
export const StrategyIndex = (data) => {
  return request({
    url: "/app/intro/index",
    method: "post",
    data: data,
  });
};
// 地图
export const mapPath = (data) => {
  return request({
    url: "app/map/index",
    method: "post",
    data: data,
  });
};

// 景区攻略评论列表
export const Introcom = (data) => {
  return request({
    url: "app/Introcom/index",
    method: "post",
    data: data,
  });
};
// 攻略评论添加
export const IntrocomAdd = (data) => {
  return request({
    url: "app/Introcom/add",
    method: "post",
    headers: {
      "Content-Type": "multipart/form-data",
      id: 136,
    },
    data: data,
  });
};

// 图片上传
export const Imgfile = (data) => {
  return request({
    url: "app/File/file",
    method: "post",
    headers: {
      "Content-Type": "multipart/form-data",
      id: 137,
    },
    data: data,
  });
};

export const login = (data) => {
  return request({
    url: "app/User/index",
    method: "post",
    data: data,
  });
};
